package cn.shopifymall.io;

import org.junit.Test;

import java.io.File;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2025/1/22 18:53
 * @Version 1.0
 */
public class FileInfo {

    @Test
    public void info() {
        String filePath = "E:\\news1.txt";
        File file = new File(filePath);
        long length = file.length();
        //Hello迪丽热巴(UTF-8) 5+4*3=17字节
        System.out.println("length = " + length);
    }
}
